import request from '@/plugin/axios'
export function GetMenuListAll () {
  return request({
    url: 'api/services/app/Menu/GetMenuListAll',
    method: 'get'
  })
}

export function GetMenuButtonByMenuId (query) {
  return request({
    url: 'api/services/app/Menu/GetButtonByMenuId?Id=' + query,
    method: 'get'
  })
}

export function CreateOrUpdate (query) {
  return request({
    url: 'api/services/app/Menu/CreateOrUpdateMenu',
    method: 'post',
    data: query
  })
}
export function DeleteMenu (query) {
  return request({
    url: 'api/services/app/Menu/Delete?Id=' + query,
    method: 'delete'
  })
}
export function DeleteButton (query) {
  return request({
    url: 'api/services/app/Menu/Delete?Id=' + query,
    method: 'delete'
  })
}
export function CreateOrUpdateButton (query) {
  return request({
    url: 'api/services/app/Menu/CreateOrUpdateButton',
    method: 'post',
    data: query
  })
}

export function IsHasMenuByTenant () {
  return request({
    url: 'api/services/app/Menu/IsHasMenuByTenant',
    method: 'post'
  })
}

export function InitializationMenu () {
  return request({
    url: 'api/services/app/InitializationTenant/InitializationMenu',
    method: 'post'
  })
}
